package org.noranj.dto;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

import com.sun.xml.txw2.annotation.XmlElement;


@Entity
@Table(name="conversation")
@XmlRootElement(name = "Conversation")
public class ConversationDTO {
	
  public ConversationDTO() {
	
	}
  


@Id
  @GeneratedValue(strategy = GenerationType.AUTO)
  @Column (name="idConversation",nullable = false)
  private Long idConversation; 
	
  @Column (name="conversationtext")
  private String conversationText;
  
  @Column (name="userId")
  private String userId;

  @Column (name="roomId")
  private Long roomId;
  
  public String getConversationText() {
    return conversationText;
  }

  public void setConversationText(String conversationText) {
    this.conversationText = conversationText;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public Long getIdConversation() {
		return idConversation;
  }
  
  public void setIdConversation(Long idConversation) {
		this.idConversation = idConversation;
   }


  public Long getRoomId() {
	return roomId;
  }
  

  public void setRoomId(Long roomId) {
	this.roomId = roomId;
  }

  
  
}
